package aiyh.utils.recordset;

import weaver.conn.RecordSet;

import java.lang.reflect.Field;

/**
 * @author EBU7-dev1-ayh
 * create 2021/12/21 0021 13:10
 */


public class IntegerTypeHandler implements TypeHandler{
    @Override
    public Object getValue(RecordSet rs, String fieldName, Field declaredField) {
        return rs.getInt(fieldName);
    }

    @Override
    public Object getValue(RecordSet rs, int index,Field declaredField) {
        return rs.getInt(index);
    }
}
